package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysOrderStrikeInvalid;
import com.ruoyi.system.domain.dto.SysOrderResponseDTO;
import com.ruoyi.system.service.SysOrderStrikeInvalidService;
import com.ruoyi.system.mapper.SysOrderStrikeInvalidMapper;
import com.ruoyi.system.vo.req.order.OrderDataGroupResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xdh
* @description 针对表【sys_order_strike_invalid(订单核查无效记录表（核查反馈信息表）)】的数据库操作Service实现
* @createDate 2024-07-02 18:21:58
*/
@Service
public class SysOrderStrikeInvalidServiceImpl extends ServiceImpl<SysOrderStrikeInvalidMapper, SysOrderStrikeInvalid>
    implements SysOrderStrikeInvalidService{

    @Autowired
    private  SysOrderStrikeInvalidMapper sysOrderStrikeInvalidMapper;

    @Override
    public List<OrderDataGroupResponseDTO> selectCountGroupByMonth(Long deptId) {
        return sysOrderStrikeInvalidMapper.selectCountGroupByMonth(deptId);
    }

    @Override
    public Integer selectCountBeforeMonth(String last12Month, Long deptId) {
        return sysOrderStrikeInvalidMapper.selectCountBeforeMonth(last12Month,deptId);
    }

    @Override
    public List<SysOrderResponseDTO> listByOrderId() {
        return sysOrderStrikeInvalidMapper.listByOrderId();
    }

    @Override
    public List<SysOrderResponseDTO> countBySql(Long deptId) {
        return sysOrderStrikeInvalidMapper.countBySql(deptId);
    }

    @Override
    public List<SysOrderStrikeInvalid> selectListByDeptId(Integer cityDeptId) {
        return sysOrderStrikeInvalidMapper.selectListByDeptId(cityDeptId);
    }
}




